package com.yupi.mianshiya.mapper;

import com.yupi.mianshiya.model.entity.Paper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface PaperMapper extends BaseMapper<Paper> {
    @Select("SELECT * FROM paper where questionbankid = #{questionbankid} " +
            "ORDER BY RAND() LIMIT #{limit}")
    List<Paper> listRandom(int limit, long questionbankid);

}




